package com.xidian.yunwudemo.mapper.master;

import com.xidian.yunwudemo.dto.ConfigInfoDto;
import com.xidian.yunwudemo.entities.ConfigInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface ConfigInfoMapper {
    int deleteByPrimaryKey(Integer uid);

    int insert(ConfigInfo record);

    int insertSelective(ConfigInfo record);

    ConfigInfo selectByPrimaryKey(Integer uid);


    int updateByPrimaryKey(ConfigInfo record);

    List<ConfigInfoDto> selectByGroup(@Param("group") String group);

    int updateConfig(@Param("infos") List<ConfigInfoDto> infos, @Param("group") String group);

    String getPortInfo(@Param("key") String key,@Param("group") String group);
}